<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>任务列表</title>
    <link rel="stylesheet" href="/static/css/layui.css" media="all">
</head>
<body style="padding-left: 10px;padding-right: 10px;">
<div class="searchTable">
    <form class="layui-form" onsubmit="return false">
        <div class="layui-form-item" style="width:25%">
            <label class="layui-form-label">年份：</label>
            <div class="layui-input-block">
                <select class="layui-select" id="year" lay-filter="search">

                </select>
                <span style="display: none" id="yearText"></span>
            </div>
        </div>
        <button id="searchBtn" style="margin-left: 10%;display: none" class="layui-btn" data-type="reload"></button>
    </form>
</div>
<table class="layui-hide" id="pushList" lay-filter="pushList"></table>
<!-- 操作栏的两个内容 -->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
</script>
<!-- 头部工具栏按钮 -->
<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-normal layui-btn-sm" lay-event="addAll">批量添加任务</button>
        <button class="layui-btn layui-btn-sm" lay-event="add">添加任务</button>
        <a id="context" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="context">编辑公告</a>
        <a id="count" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="count">编辑最多评价个数</a>
    </div>
</script>
<script type="text/html" id="toolbarDemo1">
    <div class="layui-btn-container">
    </div>
</script>
<form class="layui-form" style="display: none" id="commentForm" onsubmit="return false" lay-filter="pushForm">
    <div class="layui-form-item" style="width: 460px;margin-top: 20px">
        <label class="layui-form-label">选择部门：</label>
        <div class="layui-input-block">
            <select id="uid" name="departmentUid" class="layui-input" lay-filter="uid">
                <option selected="selected" value="" disabled>请选择部门(可搜索)</option>
                <option th:each="unit:${session.unitGradeList}" th:value="${unit.uid}" th:text="${unit.name}"></option>
            </select>
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="margin-top: -20px;margin-bottom: 10px">
        <div class="layui-inline">
            <label class="layui-form-label">日期范围</label>
            <div class="layui-inline" id="time">
                <div class="layui-input-inline">
                    <input type="text" name="startTime" autocomplete="off" id="test-startDate-1" class="layui-input"
                           placeholder="开始日期">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline">
                    <input type="text" name="endTime" autocomplete="off" id="test-endDate-1" class="layui-input"
                           placeholder="结束日期">
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="year" id="formYear"/>
    <input type="hidden" name="uid" id="pushUid"/>
    <br><br><br>
    <center><h3 style="color: brown;margin-top: 15px">将对所有启用的教学单位发起满意度调查任务</h3></center>
    <span id="uidText" style="display: none"></span>
    <!--    <div style="margin-left: 30px;" id="test3" class="demo-transfer"></div>-->
</form>

<form class="layui-form" style="display: none" id="commentFormAll" onsubmit="return false" lay-filter="commentFormAll">
    <br>
    <br>
    <div class="layui-form-item" style="margin-top: -20px;margin-bottom: 10px">
        <div class="layui-inline">
            <label class="layui-form-label">日期范围</label>
            <div class="layui-inline" id="timeAll">
                <div class="layui-input-inline">
                    <input type="text" name="startTime" autocomplete="off" id="test-startDate-All" class="layui-input"
                           placeholder="开始日期">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline">
                    <input type="text" name="endTime" autocomplete="off" id="test-endDate-All" class="layui-input"
                           placeholder="结束日期">
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="year" id="formYearAll"/>
    <br><br><br>
    <center><h3 style="color: brown;margin-top: 15px">将对所有启用的教学单位发起满意度调查任务</h3></center>
</form>
<form class="layui-form" style="display: none" id="contextForm" onsubmit="return false" lay-filter="contextForm">
    <br><br><br>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">编辑满意度调查公告栏</label>
        <div class="layui-input-block" style="margin-right: 80px;">
            <textarea placeholder="请输入内容" class="layui-textarea" name="context"
                      th:text="${session.userGradeText}"></textarea>
        </div>
    </div>
</form>
<form class="layui-form" style="display: none" id="countForm" onsubmit="return false" lay-filter="countForm">
    <br>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label" style="width: 200px;">【非常满意】最大个数：</label>
        <div class="layui-input-block" style="margin-left:15px;margin-right: 15px">
            <input class="layui-input" name="s" id="s"
                   oninput="if(value>100){value=100}else{value=value.replace(/[^\d]/g,'')}if(value.indexOf(0)==0){value=0}"
                   type="text" required=""
                   aria-required="true" th:value="${session.s}">
        </div>
        <label class="layui-form-label" style="width: 200px;">【不满意】最大个数：</label>
        <div class="layui-input-block" style="margin-left:15px;margin-right: 15px">
            <input class="layui-input" name="bad" id="bad"
                   oninput="if(value>100){value=100}else{value=value.replace(/[^\d]/g,'')}if(value.indexOf(0)==0){value=0}"
                   type="text" required=""
                   aria-required="true" th:value="${session.bad}">
        </div>
    </div>
</form>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend id="show">满意度评价细则</legend>
</fieldset>
<table class="layui-hide" id="personList" lay-filter="personList"></table>

<script src="/static/js/jquery-3.1.1.min.js"></script>
<script src="/static/layui.js" type="text/javascript"></script>
<script src="/static/js/grade.js" type="text/javascript"></script>
</body>
</html>